﻿package com.petermacko.utils {
	import flash.utils.Dictionary;

	public class DictionaryUtil
	{
		//Returns an Array of all keys within the specified dictionary.			
		public static function getKeys(d:Dictionary):Array {
			var a:Array = [];
			for(var key:Object in d) {
				a.push(key);
			}
			return a;
		}

		//Returns an Array of all values within the specified dictionary.				
		public static function getValues(d:Dictionary):Array {
			var a:Array = ][;
			for each(var value:Object in d) {
				a.push(value);
			}
			return a;
		}
	}
}